Optimal. Leaf size=464 \[ -\frac {4 a b i (f h-e i)^2 x}{d f^3}+\frac {6 b^2 i (f h-e i)^2 x}{d f^3}+\frac {3 b^2 i^2 (f h-e i) (e+f x)^2}{4 d f^4}+\frac {2 b^2 i^3 (e+f x)^3}{27 d f^4}+\frac {b^2 (f h-e i)^3 \log ^2(e+f x)}{3 d f^4}-\frac {4 b^2 i (f h-e i)^2 (e+f x) \log (c (e+f x))}{d f^4}-\frac {2 b i (f h-e i)^2 (e+f x) (a+b \log (c (e+f x)))}{d f^4}-\frac {3 b i^2 (f h-e i) (e+f x)^2 (a+b \log (c (e+f x)))}{2 d f^4}-\frac {2 b i^3 (e+f x)^3 (a+b \log (c (e+f x)))}{9 d f^4}-\frac {2 b (f h-e i)^3 \log (e+f x) (a+b \log (c (e+f x)))}{3 d f^4}+\frac {2 i (f h-e i)^2 (e+f x) (a+b \log (c (e+f x)))^2}{d f^4}+\frac {i^2 (f h-e i) (e+f x)^2 (a+b \log (c (e+f x)))^2}{2 d f^4}+\frac {(h+i x)^3 (a+b \log (c (e+f x)))^2}{3 d f}+\frac {(f h-e i)^3 (a+b \log (c (e+f x)))^3}{3 b d f^4} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.69, antiderivative size = 464, normalized size of antiderivative = 1.00, number of steps
used = 24, number of rules used = 15, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.469, Rules used =
{2458, 12, 2388, 2339, 30, 2333, 2332, 2367, 2342, 2341, 2356, 45, 2372, 14, 2338}
\begin {gather*} \frac {i^2 (e+f x)^2 (f h-e i) (a+b \log (c (e+f x)))^2}{2 d f^4}-\frac {3 b i^2 (e+f x)^2 (f h-e i) (a+b \log (c (e+f x)))}{2 d f^4}+\frac {(f h-e i)^3 (a+b \log (c (e+f x)))^3}{3 b d f^4}-\frac {2 b (f h-e i)^3 \log (e+f x) (a+b \log (c (e+f x)))}{3 d f^4}+\frac {2 i (e+f x) (f h-e i)^2 (a+b \log (c (e+f x)))^2}{d f^4}-\frac {2 b i (e+f x) (f h-e i)^2 (a+b \log (c (e+f x)))}{d f^4}-\frac {2 b i^3 (e+f x)^3 (a+b \log (c (e+f x)))}{9 d f^4}+\frac {(h+i x)^3 (a+b \log (c (e+f x)))^2}{3 d f}-\frac {4 a b i x (f h-e i)^2}{d f^3}-\frac {4 b^2 i (e+f x) (f h-e i)^2 \log (c (e+f x))}{d f^4}+\frac {3 b^2 i^2 (e+f x)^2 (f h-e i)}{4 d f^4}+\frac {b^2 (f h-e i)^3 \log ^2(e+f x)}{3 d f^4}+\frac {2 b^2 i^3 (e+f x)^3}{27 d f^4}+\frac {6 b^2 i x (f h-e i)^2}{d f^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 14
Rule 30
Rule 45
Rule 2332
Rule 2333
Rule 2338
Rule 2339
Rule 2341
Rule 2342
Rule 2356
Rule 2367
Rule 2372
Rule 2388
Rule 2458
Rubi steps
\begin {align*} \int \frac {(h+184 x)^3 (a+b \log (c (e+f x)))^2}{d e+d f x} \, dx &=\frac {\text {Subst}\left (\int \frac {\left (\frac {-184 e+f h}{f}+\frac {184 x}{f}\right )^3 (a+b \log (c x))^2}{d x} \, dx,x,e+f x\right )}{f}\\ &=\frac {\text {Subst}\left (\int \frac {\left (\frac {-184 e+f h}{f}+\frac {184 x}{f}\right )^3 (a+b \log (c x))^2}{x} \, dx,x,e+f x\right )}{d f}\\ &=\frac {184 \text {Subst}\left (\int \left (\frac {-184 e+f h}{f}+\frac {184 x}{f}\right )^2 (a+b \log (c x))^2 \, dx,x,e+f x\right )}{d f^2}-\frac {(184 e-f h) \text {Subst}\left (\int \frac {\left (\frac {-184 e+f h}{f}+\frac {184 x}{f}\right )^2 (a+b \log (c x))^2}{x} \, dx,x,e+f x\right )}{d f^2}\\ &=\frac {(h+184 x)^3 (a+b \log (c (e+f x)))^2}{3 d f}-\frac {(2 b) \text {Subst}\left (\int \frac {\left (\frac {-184 e+f h}{f}+\frac {184 x}{f}\right )^3 (a+b \log (c x))}{x} \, dx,x,e+f x\right )}{3 d f}-\frac {(184 (184 e-f h)) \text {Subst}\left (\int \left (\frac {-184 e+f h}{f}+\frac {184 x}{f}\right ) (a+b \log (c x))^2 \, dx,x,e+f x\right )}{d f^3}+\frac {(184 e-f h)^2 \text {Subst}\left (\int \frac {\left (\frac {-184 e+f h}{f}+\frac {184 x}{f}\right ) (a+b \log (c x))^2}{x} \, dx,x,e+f x\right )}{d f^3}\\ &=-\frac {2 b \left (\frac {1656 (184 e-f h)^2 (e+f x)}{f^3}-\frac {152352 (184 e-f h) (e+f x)^2}{f^3}+\frac {6229504 (e+f x)^3}{f^3}-\frac {3 (184 e-f h)^3 \log (e+f x)}{f^3}\right ) (a+b \log (c (e+f x)))}{9 d f}+\frac {(h+184 x)^3 (a+b \log (c (e+f x)))^2}{3 d f}+\frac {\left (2 b^2\right ) \text {Subst}\left (\int \frac {184 x \left (304704 e^2+9 f^2 h^2+828 f h x+33856 x^2-3312 e (f h+46 x)\right )-3 (184 e-f h)^3 \log (x)}{3 f^3 x} \, dx,x,e+f x\right )}{3 d f}-\frac {(184 (184 e-f h)) \text {Subst}\left (\int \left (\frac {(-184 e+f h) (a+b \log (c x))^2}{f}+\frac {184 x (a+b \log (c x))^2}{f}\right ) \, dx,x,e+f x\right )}{d f^3}+\frac {\left (184 (184 e-f h)^2\right ) \text {Subst}\left (\int (a+b \log (c x))^2 \, dx,x,e+f x\right )}{d f^4}-\frac {(184 e-f h)^3 \text {Subst}\left (\int \frac {(a+b \log (c x))^2}{x} \, dx,x,e+f x\right )}{d f^4}\\ &=-\frac {2 b \left (\frac {1656 (184 e-f h)^2 (e+f x)}{f^3}-\frac {152352 (184 e-f h) (e+f x)^2}{f^3}+\frac {6229504 (e+f x)^3}{f^3}-\frac {3 (184 e-f h)^3 \log (e+f x)}{f^3}\right ) (a+b \log (c (e+f x)))}{9 d f}+\frac {(h+184 x)^3 (a+b \log (c (e+f x)))^2}{3 d f}+\frac {184 (184 e-f h)^2 (e+f x) (a+b \log (c (e+f x)))^2}{d f^4}+\frac {\left (2 b^2\right ) \text {Subst}\left (\int \frac {184 x \left (304704 e^2+9 f^2 h^2+828 f h x+33856 x^2-3312 e (f h+46 x)\right )-3 (184 e-f h)^3 \log (x)}{x} \, dx,x,e+f x\right )}{9 d f^4}-\frac {(33856 (184 e-f h)) \text {Subst}\left (\int x (a+b \log (c x))^2 \, dx,x,e+f x\right )}{d f^4}+\frac {\left (184 (184 e-f h)^2\right ) \text {Subst}\left (\int (a+b \log (c x))^2 \, dx,x,e+f x\right )}{d f^4}-\frac {\left (368 b (184 e-f h)^2\right ) \text {Subst}(\int (a+b \log (c x)) \, dx,x,e+f x)}{d f^4}-\frac {(184 e-f h)^3 \text {Subst}\left (\int x^2 \, dx,x,a+b \log (c (e+f x))\right )}{b d f^4}\\ &=-\frac {368 a b (184 e-f h)^2 x}{d f^3}-\frac {2 b \left (\frac {1656 (184 e-f h)^2 (e+f x)}{f^3}-\frac {152352 (184 e-f h) (e+f x)^2}{f^3}+\frac {6229504 (e+f x)^3}{f^3}-\frac {3 (184 e-f h)^3 \log (e+f x)}{f^3}\right ) (a+b \log (c (e+f x)))}{9 d f}+\frac {(h+184 x)^3 (a+b \log (c (e+f x)))^2}{3 d f}+\frac {368 (184 e-f h)^2 (e+f x) (a+b \log (c (e+f x)))^2}{d f^4}-\frac {16928 (184 e-f h) (e+f x)^2 (a+b \log (c (e+f x)))^2}{d f^4}-\frac {(184 e-f h)^3 (a+b \log (c (e+f x)))^3}{3 b d f^4}+\frac {\left (2 b^2\right ) \text {Subst}\left (\int \left (184 \left (9 (184 e-f h)^2-828 (184 e-f h) x+33856 x^2\right )-\frac {3 (184 e-f h)^3 \log (x)}{x}\right ) \, dx,x,e+f x\right )}{9 d f^4}+\frac {(33856 b (184 e-f h)) \text {Subst}(\int x (a+b \log (c x)) \, dx,x,e+f x)}{d f^4}-\frac {\left (368 b (184 e-f h)^2\right ) \text {Subst}(\int (a+b \log (c x)) \, dx,x,e+f x)}{d f^4}-\frac {\left (368 b^2 (184 e-f h)^2\right ) \text {Subst}(\int \log (c x) \, dx,x,e+f x)}{d f^4}\\ &=-\frac {736 a b (184 e-f h)^2 x}{d f^3}+\frac {368 b^2 (184 e-f h)^2 x}{d f^3}-\frac {8464 b^2 (184 e-f h) (e+f x)^2}{d f^4}-\frac {368 b^2 (184 e-f h)^2 (e+f x) \log (c (e+f x))}{d f^4}+\frac {16928 b (184 e-f h) (e+f x)^2 (a+b \log (c (e+f x)))}{d f^4}-\frac {2 b \left (\frac {1656 (184 e-f h)^2 (e+f x)}{f^3}-\frac {152352 (184 e-f h) (e+f x)^2}{f^3}+\frac {6229504 (e+f x)^3}{f^3}-\frac {3 (184 e-f h)^3 \log (e+f x)}{f^3}\right ) (a+b \log (c (e+f x)))}{9 d f}+\frac {(h+184 x)^3 (a+b \log (c (e+f x)))^2}{3 d f}+\frac {368 (184 e-f h)^2 (e+f x) (a+b \log (c (e+f x)))^2}{d f^4}-\frac {16928 (184 e-f h) (e+f x)^2 (a+b \log (c (e+f x)))^2}{d f^4}-\frac {(184 e-f h)^3 (a+b \log (c (e+f x)))^3}{3 b d f^4}+\frac {\left (368 b^2\right ) \text {Subst}\left (\int \left (9 (184 e-f h)^2-828 (184 e-f h) x+33856 x^2\right ) \, dx,x,e+f x\right )}{9 d f^4}-\frac {\left (368 b^2 (184 e-f h)^2\right ) \text {Subst}(\int \log (c x) \, dx,x,e+f x)}{d f^4}-\frac {\left (2 b^2 (184 e-f h)^3\right ) \text {Subst}\left (\int \frac {\log (x)}{x} \, dx,x,e+f x\right )}{3 d f^4}\\ &=-\frac {736 a b (184 e-f h)^2 x}{d f^3}+\frac {1104 b^2 (184 e-f h)^2 x}{d f^3}-\frac {25392 b^2 (184 e-f h) (e+f x)^2}{d f^4}+\frac {12459008 b^2 (e+f x)^3}{27 d f^4}-\frac {b^2 (184 e-f h)^3 \log ^2(e+f x)}{3 d f^4}-\frac {736 b^2 (184 e-f h)^2 (e+f x) \log (c (e+f x))}{d f^4}+\frac {16928 b (184 e-f h) (e+f x)^2 (a+b \log (c (e+f x)))}{d f^4}-\frac {2 b \left (\frac {1656 (184 e-f h)^2 (e+f x)}{f^3}-\frac {152352 (184 e-f h) (e+f x)^2}{f^3}+\frac {6229504 (e+f x)^3}{f^3}-\frac {3 (184 e-f h)^3 \log (e+f x)}{f^3}\right ) (a+b \log (c (e+f x)))}{9 d f}+\frac {(h+184 x)^3 (a+b \log (c (e+f x)))^2}{3 d f}+\frac {368 (184 e-f h)^2 (e+f x) (a+b \log (c (e+f x)))^2}{d f^4}-\frac {16928 (184 e-f h) (e+f x)^2 (a+b \log (c (e+f x)))^2}{d f^4}-\frac {(184 e-f h)^3 (a+b \log (c (e+f x)))^3}{3 b d f^4}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.39, size = 460, normalized size = 0.99 \begin {gather*} \frac {f i x \left (18 a^2 \left (6 e^2 i^2-3 e f i (6 h+i x)+f^2 \left (18 h^2+9 h i x+2 i^2 x^2\right )\right )-6 a b \left (66 e^2 i^2-3 e f i (54 h+5 i x)+f^2 \left (108 h^2+27 h i x+4 i^2 x^2\right )\right )+b^2 \left (510 e^2 i^2-3 e f i (378 h+19 i x)+f^2 \left (648 h^2+81 h i x+8 i^2 x^2\right )\right )\right )+6 \left (18 a^2 (f h-e i)^3+b^2 e i \left (-108 f^2 h^2+189 e f h i-85 e^2 i^2\right )+6 a b e i \left (18 f^2 h^2-27 e f h i+11 e^2 i^2\right )\right ) \log (e+f x)+6 b f i x \left (6 a \left (6 e^2 i^2-3 e f i (6 h+i x)+f^2 \left (18 h^2+9 h i x+2 i^2 x^2\right )\right )-b \left (66 e^2 i^2-3 e f i (54 h+5 i x)+f^2 \left (108 h^2+27 h i x+4 i^2 x^2\right )\right )\right ) \log (c (e+f x))+18 b \left (6 a (f h-e i)^3+b i (e+f x) \left (11 e^2 i^2-e f i (27 h+5 i x)+f^2 \left (18 h^2+9 h i x+2 i^2 x^2\right )\right )\right ) \log ^2(c (e+f x))+36 b^2 (f h-e i)^3 \log ^3(c (e+f x))}{108 d f^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1177\) vs.
\(2(446)=892\).
time = 0.54, size = 1178, normalized size = 2.54 Too large to display
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Both result and optimal contain complex but leaf count of result is larger than
twice the leaf count of optimal. 979 vs. \(2 (445) = 890\).
time = 0.32, size = 979, normalized size = 2.11 \begin {gather*} -a b h^{3} {\left (\frac {2 \, \log \left (c f x + c e\right ) \log \left (d f x + d e\right )}{d f} - \frac {\log \left (f x + e\right )^{2} + 2 \, \log \left (f x + e\right ) \log \left (c\right )}{d f}\right )} + 6 i \, a b h^{2} {\left (\frac {x}{d f} - \frac {e \log \left (f x + e\right )}{d f^{2}}\right )} \log \left (c f x + c e\right ) + \frac {b^{2} h^{3} \log \left (c f x + c e\right )^{3}}{3 \, d f} + 3 i \, a^{2} h^{2} {\left (\frac {x}{d f} - \frac {e \log \left (f x + e\right )}{d f^{2}}\right )} - 3 \, a b h {\left (\frac {f x^{2} - 2 \, x e}{d f^{2}} + \frac {2 \, e^{2} \log \left (f x + e\right )}{d f^{3}}\right )} \log \left (c f x + c e\right ) + \frac {2 \, a b h^{3} \log \left (c f x + c e\right ) \log \left (d f x + d e\right )}{d f} - \frac {3}{2} \, a^{2} h {\left (\frac {f x^{2} - 2 \, x e}{d f^{2}} + \frac {2 \, e^{2} \log \left (f x + e\right )}{d f^{3}}\right )} - \frac {1}{3} i \, a b {\left (\frac {2 \, f^{2} x^{3} - 3 \, f x^{2} e + 6 \, x e^{2}}{d f^{3}} - \frac {6 \, e^{3} \log \left (f x + e\right )}{d f^{4}}\right )} \log \left (c f x + c e\right ) + \frac {a^{2} h^{3} \log \left (d f x + d e\right )}{d f} - \frac {1}{6} i \, a^{2} {\left (\frac {2 \, f^{2} x^{3} - 3 \, f x^{2} e + 6 \, x e^{2}}{d f^{3}} - \frac {6 \, e^{3} \log \left (f x + e\right )}{d f^{4}}\right )} + \frac {3 i \, {\left (e \log \left (f x + e\right )^{2} - 2 \, f x + 2 \, e \log \left (f x + e\right )\right )} a b h^{2}}{d f^{2}} + \frac {3 \, {\left (f^{2} x^{2} - 6 \, f x e + 2 \, e^{2} \log \left (f x + e\right )^{2} + 6 \, e^{2} \log \left (f x + e\right )\right )} a b h}{2 \, d f^{3}} - \frac {i \, {\left (c^{2} e \log \left (c f x + c e\right )^{3} - 3 \, {\left (c f x + c e\right )} {\left (c \log \left (c f x + c e\right )^{2} - 2 \, c \log \left (c f x + c e\right ) + 2 \, c\right )}\right )} b^{2} h^{2}}{c^{2} d f^{2}} + \frac {i \, {\left (4 \, f^{3} x^{3} - 15 \, f^{2} x^{2} e + 66 \, f x e^{2} - 18 \, e^{3} \log \left (f x + e\right )^{2} - 66 \, e^{3} \log \left (f x + e\right )\right )} a b}{18 \, d f^{4}} - \frac {{\left (4 \, c^{3} e^{2} \log \left (c f x + c e\right )^{3} + 3 \, {\left (c f x + c e\right )}^{2} {\left (2 \, c \log \left (c f x + c e\right )^{2} - 2 \, c \log \left (c f x + c e\right ) + c\right )} - 24 \, {\left (c^{2} e \log \left (c f x + c e\right )^{2} - 2 \, c^{2} e \log \left (c f x + c e\right ) + 2 \, c^{2} e\right )} {\left (c f x + c e\right )}\right )} b^{2} h}{4 \, c^{3} d f^{3}} + \frac {i \, {\left (36 \, c^{4} e^{3} \log \left (c f x + c e\right )^{3} - 4 \, {\left (c f x + c e\right )}^{3} {\left (9 \, c \log \left (c f x + c e\right )^{2} - 6 \, c \log \left (c f x + c e\right ) + 2 \, c\right )} + 81 \, {\left (2 \, c^{2} e \log \left (c f x + c e\right )^{2} - 2 \, c^{2} e \log \left (c f x + c e\right ) + c^{2} e\right )} {\left (c f x + c e\right )}^{2} - 324 \, {\left (c^{3} e^{2} \log \left (c f x + c e\right )^{2} - 2 \, c^{3} e^{2} \log \left (c f x + c e\right ) + 2 \, c^{3} e^{2}\right )} {\left (c f x + c e\right )}\right )} b^{2}}{108 \, c^{4} d f^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 546, normalized size = 1.18 \begin {gather*} -\frac {324 \, {\left (-i \, a^{2} + 2 i \, a b - 2 i \, b^{2}\right )} f^{3} h^{2} x + 81 \, {\left (2 \, a^{2} - 2 \, a b + b^{2}\right )} f^{3} h x^{2} + 4 \, {\left (9 i \, a^{2} - 6 i \, a b + 2 i \, b^{2}\right )} f^{3} x^{3} + 6 \, {\left (18 i \, a^{2} - 66 i \, a b + 85 i \, b^{2}\right )} f x e^{2} - 36 \, {\left (b^{2} f^{3} h^{3} - 3 i \, b^{2} f^{2} h^{2} e - 3 \, b^{2} f h e^{2} + i \, b^{2} e^{3}\right )} \log \left (c f x + c e\right )^{3} - 18 \, {\left (6 \, a b f^{3} h^{3} + 18 i \, b^{2} f^{3} h^{2} x - 9 \, b^{2} f^{3} h x^{2} - 2 i \, b^{2} f^{3} x^{3} - {\left (-6 i \, a b + 11 i \, b^{2}\right )} e^{3} - 3 \, {\left (2 i \, b^{2} f x + 3 \, {\left (2 \, a b - 3 \, b^{2}\right )} f h\right )} e^{2} + 3 \, {\left (6 \, b^{2} f^{2} h x + i \, b^{2} f^{2} x^{2} - 6 \, {\left (i \, a b - i \, b^{2}\right )} f^{2} h^{2}\right )} e\right )} \log \left (c f x + c e\right )^{2} - 3 \, {\left (54 \, {\left (2 \, a^{2} - 6 \, a b + 7 \, b^{2}\right )} f^{2} h x - {\left (-18 i \, a^{2} + 30 i \, a b - 19 i \, b^{2}\right )} f^{2} x^{2}\right )} e - 6 \, {\left (18 \, a^{2} f^{3} h^{3} - 108 \, {\left (-i \, a b + i \, b^{2}\right )} f^{3} h^{2} x - 27 \, {\left (2 \, a b - b^{2}\right )} f^{3} h x^{2} - 4 \, {\left (3 i \, a b - i \, b^{2}\right )} f^{3} x^{3} - {\left (-18 i \, a^{2} + 66 i \, a b - 85 i \, b^{2}\right )} e^{3} - 3 \, {\left (9 \, {\left (2 \, a^{2} - 6 \, a b + 7 \, b^{2}\right )} f h + 2 \, {\left (6 i \, a b - 11 i \, b^{2}\right )} f x\right )} e^{2} - 3 \, {\left (18 \, {\left (i \, a^{2} - 2 i \, a b + 2 i \, b^{2}\right )} f^{2} h^{2} - 18 \, {\left (2 \, a b - 3 \, b^{2}\right )} f^{2} h x + {\left (-6 i \, a b + 5 i \, b^{2}\right )} f^{2} x^{2}\right )} e\right )} \log \left (c f x + c e\right )}{108 \, d f^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 918 vs.
\(2 (428) = 856\).
time = 1.35, size = 918, normalized size = 1.98 \begin {gather*} x^{3} \left (\frac {a^{2} i^{3}}{3 d f} - \frac {2 a b i^{3}}{9 d f} + \frac {2 b^{2} i^{3}}{27 d f}\right ) + x^{2} \left (- \frac {a^{2} e i^{3}}{2 d f^{2}} + \frac {3 a^{2} h i^{2}}{2 d f} + \frac {5 a b e i^{3}}{6 d f^{2}} - \frac {3 a b h i^{2}}{2 d f} - \frac {19 b^{2} e i^{3}}{36 d f^{2}} + \frac {3 b^{2} h i^{2}}{4 d f}\right ) + x \left (\frac {a^{2} e^{2} i^{3}}{d f^{3}} - \frac {3 a^{2} e h i^{2}}{d f^{2}} + \frac {3 a^{2} h^{2} i}{d f} - \frac {11 a b e^{2} i^{3}}{3 d f^{3}} + \frac {9 a b e h i^{2}}{d f^{2}} - \frac {6 a b h^{2} i}{d f} + \frac {85 b^{2} e^{2} i^{3}}{18 d f^{3}} - \frac {21 b^{2} e h i^{2}}{2 d f^{2}} + \frac {6 b^{2} h^{2} i}{d f}\right ) + \frac {\left (36 a b e^{2} i^{3} x - 108 a b e f h i^{2} x - 18 a b e f i^{3} x^{2} + 108 a b f^{2} h^{2} i x + 54 a b f^{2} h i^{2} x^{2} + 12 a b f^{2} i^{3} x^{3} - 66 b^{2} e^{2} i^{3} x + 162 b^{2} e f h i^{2} x + 15 b^{2} e f i^{3} x^{2} - 108 b^{2} f^{2} h^{2} i x - 27 b^{2} f^{2} h i^{2} x^{2} - 4 b^{2} f^{2} i^{3} x^{3}\right ) \log {\left (c \left (e + f x\right ) \right )}}{18 d f^{3}} + \frac {\left (- b^{2} e^{3} i^{3} + 3 b^{2} e^{2} f h i^{2} - 3 b^{2} e f^{2} h^{2} i + b^{2} f^{3} h^{3}\right ) \log {\left (c \left (e + f x\right ) \right )}^{3}}{3 d f^{4}} - \frac {\left (18 a^{2} e^{3} i^{3} - 54 a^{2} e^{2} f h i^{2} + 54 a^{2} e f^{2} h^{2} i - 18 a^{2} f^{3} h^{3} - 66 a b e^{3} i^{3} + 162 a b e^{2} f h i^{2} - 108 a b e f^{2} h^{2} i + 85 b^{2} e^{3} i^{3} - 189 b^{2} e^{2} f h i^{2} + 108 b^{2} e f^{2} h^{2} i\right ) \log {\left (e + f x \right )}}{18 d f^{4}} + \frac {\left (- 6 a b e^{3} i^{3} + 18 a b e^{2} f h i^{2} - 18 a b e f^{2} h^{2} i + 6 a b f^{3} h^{3} + 11 b^{2} e^{3} i^{3} - 27 b^{2} e^{2} f h i^{2} + 6 b^{2} e^{2} f i^{3} x + 18 b^{2} e f^{2} h^{2} i - 18 b^{2} e f^{2} h i^{2} x - 3 b^{2} e f^{2} i^{3} x^{2} + 18 b^{2} f^{3} h^{2} i x + 9 b^{2} f^{3} h i^{2} x^{2} + 2 b^{2} f^{3} i^{3} x^{3}\right ) \log {\left (c \left (e + f x\right ) \right )}^{2}}{6 d f^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 1005 vs. \(2 (445) = 890\).
time = 7.02, size = 1005, normalized size = 2.17 \begin {gather*} \frac {36 \, b^{2} f^{3} h^{3} \log \left (c f x + c e\right )^{3} + 108 \, a b f^{3} h^{3} \log \left (c f x + c e\right )^{2} + 324 i \, b^{2} f^{3} h^{2} x \log \left (c f x + c e\right )^{2} - 162 \, b^{2} f^{3} h x^{2} \log \left (c f x + c e\right )^{2} - 36 i \, b^{2} f^{3} x^{3} \log \left (c f x + c e\right )^{2} - 108 i \, b^{2} f^{2} h^{2} e \log \left (c f x + c e\right )^{3} + 648 i \, a b f^{3} h^{2} x \log \left (c f x + c e\right ) - 648 i \, b^{2} f^{3} h^{2} x \log \left (c f x + c e\right ) - 324 \, a b f^{3} h x^{2} \log \left (c f x + c e\right ) + 162 \, b^{2} f^{3} h x^{2} \log \left (c f x + c e\right ) - 72 i \, a b f^{3} x^{3} \log \left (c f x + c e\right ) + 24 i \, b^{2} f^{3} x^{3} \log \left (c f x + c e\right ) - 324 i \, a b f^{2} h^{2} e \log \left (c f x + c e\right )^{2} + 324 i \, b^{2} f^{2} h^{2} e \log \left (c f x + c e\right )^{2} + 324 \, b^{2} f^{2} h x e \log \left (c f x + c e\right )^{2} + 54 i \, b^{2} f^{2} x^{2} e \log \left (c f x + c e\right )^{2} + 108 \, a^{2} f^{3} h^{3} \log \left (f x + e\right ) + 324 i \, a^{2} f^{3} h^{2} x - 648 i \, a b f^{3} h^{2} x + 648 i \, b^{2} f^{3} h^{2} x - 162 \, a^{2} f^{3} h x^{2} + 162 \, a b f^{3} h x^{2} - 81 \, b^{2} f^{3} h x^{2} - 36 i \, a^{2} f^{3} x^{3} + 24 i \, a b f^{3} x^{3} - 8 i \, b^{2} f^{3} x^{3} + 648 \, a b f^{2} h x e \log \left (c f x + c e\right ) - 972 \, b^{2} f^{2} h x e \log \left (c f x + c e\right ) + 108 i \, a b f^{2} x^{2} e \log \left (c f x + c e\right ) - 90 i \, b^{2} f^{2} x^{2} e \log \left (c f x + c e\right ) - 108 \, b^{2} f h e^{2} \log \left (c f x + c e\right )^{3} - 324 i \, a^{2} f^{2} h^{2} e \log \left (f x + e\right ) + 648 i \, a b f^{2} h^{2} e \log \left (f x + e\right ) - 648 i \, b^{2} f^{2} h^{2} e \log \left (f x + e\right ) + 324 \, a^{2} f^{2} h x e - 972 \, a b f^{2} h x e + 1134 \, b^{2} f^{2} h x e + 54 i \, a^{2} f^{2} x^{2} e - 90 i \, a b f^{2} x^{2} e + 57 i \, b^{2} f^{2} x^{2} e - 324 \, a b f h e^{2} \log \left (c f x + c e\right )^{2} + 486 \, b^{2} f h e^{2} \log \left (c f x + c e\right )^{2} - 108 i \, b^{2} f x e^{2} \log \left (c f x + c e\right )^{2} - 216 i \, a b f x e^{2} \log \left (c f x + c e\right ) + 396 i \, b^{2} f x e^{2} \log \left (c f x + c e\right ) + 36 i \, b^{2} e^{3} \log \left (c f x + c e\right )^{3} - 324 \, a^{2} f h e^{2} \log \left (f x + e\right ) + 972 \, a b f h e^{2} \log \left (f x + e\right ) - 1134 \, b^{2} f h e^{2} \log \left (f x + e\right ) - 108 i \, a^{2} f x e^{2} + 396 i \, a b f x e^{2} - 510 i \, b^{2} f x e^{2} + 108 i \, a b e^{3} \log \left (c f x + c e\right )^{2} - 198 i \, b^{2} e^{3} \log \left (c f x + c e\right )^{2} + 108 i \, a^{2} e^{3} \log \left (f x + e\right ) - 396 i \, a b e^{3} \log \left (f x + e\right ) + 510 i \, b^{2} e^{3} \log \left (f x + e\right )}{108 \, d f^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.69, size = 803, normalized size = 1.73 \begin {gather*} x^2\,\left (\frac {i^2\,\left (18\,a^2\,f\,h-5\,b^2\,e\,i+9\,b^2\,f\,h+6\,a\,b\,e\,i-18\,a\,b\,f\,h\right )}{12\,d\,f^2}-\frac {e\,i^3\,\left (9\,a^2-6\,a\,b+2\,b^2\right )}{18\,d\,f^2}\right )+{\ln \left (c\,\left (e+f\,x\right )\right )}^2\,\left (f\,\left (\frac {b^2\,i^3\,x^3}{3\,d\,f^2}-\frac {b^2\,i^2\,x^2\,\left (e\,i-3\,f\,h\right )}{2\,d\,f^3}+\frac {b^2\,i\,x\,\left (e^2\,i^2-3\,e\,f\,h\,i+3\,f^2\,h^2\right )}{d\,f^4}\right )+\frac {11\,b^2\,e^3\,i^3-27\,b^2\,e^2\,f\,h\,i^2+18\,b^2\,e\,f^2\,h^2\,i-6\,a\,b\,e^3\,i^3+18\,a\,b\,e^2\,f\,h\,i^2-18\,a\,b\,e\,f^2\,h^2\,i+6\,a\,b\,f^3\,h^3}{6\,d\,f^4}\right )+x\,\left (\frac {54\,a^2\,f^2\,h^2\,i-36\,a\,b\,e^2\,i^3+108\,a\,b\,e\,f\,h\,i^2-108\,a\,b\,f^2\,h^2\,i+66\,b^2\,e^2\,i^3-162\,b^2\,e\,f\,h\,i^2+108\,b^2\,f^2\,h^2\,i}{18\,d\,f^3}-\frac {e\,\left (\frac {i^2\,\left (18\,a^2\,f\,h-5\,b^2\,e\,i+9\,b^2\,f\,h+6\,a\,b\,e\,i-18\,a\,b\,f\,h\right )}{6\,d\,f^2}-\frac {e\,i^3\,\left (9\,a^2-6\,a\,b+2\,b^2\right )}{9\,d\,f^2}\right )}{f}\right )+f\,\ln \left (c\,\left (e+f\,x\right )\right )\,\left (\frac {x^2\,\left (5\,e\,b^2\,i^3-9\,f\,h\,b^2\,i^2-6\,a\,e\,b\,i^3+18\,a\,f\,h\,b\,i^2\right )}{6\,d\,f^3}-\frac {x\,\left (11\,b^2\,e^2\,i^3-27\,b^2\,e\,f\,h\,i^2+18\,b^2\,f^2\,h^2\,i-6\,a\,b\,e^2\,i^3+18\,a\,b\,e\,f\,h\,i^2-18\,a\,b\,f^2\,h^2\,i\right )}{3\,d\,f^4}+\frac {2\,b\,i^3\,x^3\,\left (3\,a-b\right )}{9\,d\,f^2}\right )-\frac {\ln \left (e+f\,x\right )\,\left (18\,a^2\,e^3\,i^3-54\,a^2\,e^2\,f\,h\,i^2+54\,a^2\,e\,f^2\,h^2\,i-18\,a^2\,f^3\,h^3-66\,a\,b\,e^3\,i^3+162\,a\,b\,e^2\,f\,h\,i^2-108\,a\,b\,e\,f^2\,h^2\,i+85\,b^2\,e^3\,i^3-189\,b^2\,e^2\,f\,h\,i^2+108\,b^2\,e\,f^2\,h^2\,i\right )}{18\,d\,f^4}+\frac {i^3\,x^3\,\left (9\,a^2-6\,a\,b+2\,b^2\right )}{27\,d\,f}-\frac {b^2\,{\ln \left (c\,\left (e+f\,x\right )\right )}^3\,\left (e^3\,i^3-3\,e^2\,f\,h\,i^2+3\,e\,f^2\,h^2\,i-f^3\,h^3\right )}{3\,d\,f^4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________